package com.syx.migration.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.syx.migration.domain.base.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.Date;

/**
 * 图书预借对象 syx_subscribe
 *
 * @author Syx
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("syx_subscribe")
public class SyxSubscribe extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 读者id
     */
    private Long readerId;

    /**
     * 图书id
     */
    private Long bookId;

    /**
     * 状态（0预约，1已借阅，2失效）
     */
    private String status;

    /**
     * 有效日期
     */
    private Date finishTime;

    /**
     * 借阅日期
     */
    private Date borrowTime;

    @TableField(exist = false)
    private String oldBkNum;

    @TableField(exist = false)
    private String oldReaderId;

}
